package ch9.ex1;

import java.util.Properties;

public class JavaTypes {

	public static void main(String[] args) {
		Integer i=324;
		System.out.println("Integer "+i);
		Byte b = (byte) (20+20);
		System.out.println("Byte "+b);
		Integer a=Integer.MAX_VALUE;
		Double d=9d;
		System.out.println("double "+d);
		Double d1=2.2999999999999996d;
		Double d2=2.2999999999999997d;
		System.out.println("aaaaa"+a);
		System.out.println("d1 "+Math.round(d1));
		System.out.println(2.3d==d2);
		System.out.println(Math.PI);
		String[] key = { "java.home", "os.name", "java.io.tmpdir",
				"line.separator", "file.separator", "path.seperator",
				"user.dir", };
		Properties p1=System.getProperties();
		for (Integer idx=0; idx<key.length; idx++){
		String x=key[idx];
		//System.out.println("---- "+key);
		String properties = System.getProperty(p1);
		System.out.println(x+" = "+properties);
		}

	}
}
